package kr.hkit.powerjava.chapter7.G;

import java.io.InputStream;
import java.util.Scanner;

public class market {
	public static void main(String[] args) {
		double a; //물건값
		double b; //갯수
		double c; //가격
		double d; //10%할인
		double e; //20%할인
		double f; //15%할인
		Scanner input = new Scanner(System.in);
		
		a = 100;
				System.out.println("구입 갯수를 입력하시오.");
		b = input.nextInt();
		
		c = a*b;
		d = a*b*0.1;
		e = a*b*0.2;
		f = a*b*0.15;
		if(b >=100)
			System.out.println(c-e);
		else if(b>=20)
			System.out.println(c-f);
		else if(b>=10)
				System.out.println(c-d);
			else
			System.out.println(c);
		
	}

}
